package com.leased.service;

import com.leased.exception.DatabaseException;
import com.leased.pojo.AdminInfo;
import com.leased.request.BaseQuery;
import com.leased.utils.Page;

/**
 * Created by shencx on 2017/7/27.
 */
public interface AdminInfoService {

    AdminInfo fetchAdminInfoLogin(AdminInfo adminInfo) throws DatabaseException;

    Page<AdminInfo> fetchAdminInfoList(BaseQuery baseQuery) throws DatabaseException;

    Integer addAdminInfo(AdminInfo adminInfo) throws DatabaseException;

    boolean updateAdminInfo(AdminInfo adminInfo) throws DatabaseException;

    AdminInfo fetchAdminInfoById(Integer id) throws DatabaseException;
}
